<template>
  <div id="app">
     <router-view />
  </div>
</template>

<script>
import userApi from "@/api/user"
export default {
  name: 'App',
  created(){
      this.getUserList()
  },
  methods:{
      getUserList(){
          let allCtrl = {}
          allCtrl.sql="select nickname from tb_user"
          allCtrl.doQuery=1
          allCtrl.doList=1
          allCtrl.doCount=0
          userApi.getAll(allCtrl).then(res =>{
              this.$store.commit('SET_USERLIST',res.data.data)
          })
      }
  }
}
</script>

<style lang="stylus">
  *{
    padding: 0;
    margin: 0;
  }
  #app{
    width:100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
  }
</style>
